package com.lzh.healthCode.business.entity;

import com.lzh.healthCode.utils.UpdAreaEnum;
import com.lzh.healthCode.utils.UpdTypeEnum;
import lombok.Data;

/**
 * @author suYanLong
 * @date 2022年07月21日 9:29
 */
@Data
public class UpdParams {

    private String errorCount;

    private String feedBackList;

    private String sampleno;

    private Integer type; // 1:省 2：市

    private Integer updType; // 1:首次上传更新 2：处理失败更新

    public UpdParams() {

    }

    public UpdParams(String errorCount, String feedBackList, String sampleno) {
        this.errorCount = errorCount;
        this.feedBackList = feedBackList;
        this.sampleno = sampleno;
    }

    public UpdParams(String errorCount, String feedBackList, String sampleno, UpdAreaEnum type, UpdTypeEnum updType) {
        this.errorCount = errorCount;
        this.feedBackList = feedBackList;
        this.sampleno = sampleno;
        this.type = type.getKey();
        this.updType = updType.getKey();
    }

    public UpdParams(UpdAreaEnum type, UpdTypeEnum updType) {
        this.type = type.getKey();
        this.updType = updType.getKey();
    }

}
